﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Jabr.Logic.Roster;

namespace Jabr.GUI.Forms
{
    public partial class ContactForm : Form
    {
        public ContactForm(DisplayableContact dc)
        {
            InitializeComponent();

            if (!string.IsNullOrEmpty(dc.Name))
                this.IdValue.Enabled = false;
            this.ContactBindingSource.DataSource = dc;
        }

        private void OkBtn_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
